package com.lxk.pojo;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SeckillExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SeckillExample() {
        oredCriteria = new ArrayList<>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andSeckillIdIsNull() {
            addCriterion("seckill_id is null");
            return (Criteria) this;
        }

        public Criteria andSeckillIdIsNotNull() {
            addCriterion("seckill_id is not null");
            return (Criteria) this;
        }

        public Criteria andSeckillIdEqualTo(Integer value) {
            addCriterion("seckill_id =", value, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdNotEqualTo(Integer value) {
            addCriterion("seckill_id <>", value, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdGreaterThan(Integer value) {
            addCriterion("seckill_id >", value, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("seckill_id >=", value, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdLessThan(Integer value) {
            addCriterion("seckill_id <", value, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdLessThanOrEqualTo(Integer value) {
            addCriterion("seckill_id <=", value, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdIn(List<Integer> values) {
            addCriterion("seckill_id in", values, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdNotIn(List<Integer> values) {
            addCriterion("seckill_id not in", values, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdBetween(Integer value1, Integer value2) {
            addCriterion("seckill_id between", value1, value2, "seckillId");
            return (Criteria) this;
        }

        public Criteria andSeckillIdNotBetween(Integer value1, Integer value2) {
            addCriterion("seckill_id not between", value1, value2, "seckillId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNull() {
            addCriterion("goods_id is null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIsNotNull() {
            addCriterion("goods_id is not null");
            return (Criteria) this;
        }

        public Criteria andGoodsIdEqualTo(Integer value) {
            addCriterion("goods_id =", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotEqualTo(Integer value) {
            addCriterion("goods_id <>", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThan(Integer value) {
            addCriterion("goods_id >", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("goods_id >=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThan(Integer value) {
            addCriterion("goods_id <", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdLessThanOrEqualTo(Integer value) {
            addCriterion("goods_id <=", value, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdIn(List<Integer> values) {
            addCriterion("goods_id in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotIn(List<Integer> values) {
            addCriterion("goods_id not in", values, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdBetween(Integer value1, Integer value2) {
            addCriterion("goods_id between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andGoodsIdNotBetween(Integer value1, Integer value2) {
            addCriterion("goods_id not between", value1, value2, "goodsId");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceIsNull() {
            addCriterion("seckill_price is null");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceIsNotNull() {
            addCriterion("seckill_price is not null");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceEqualTo(BigDecimal value) {
            addCriterion("seckill_price =", value, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceNotEqualTo(BigDecimal value) {
            addCriterion("seckill_price <>", value, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceGreaterThan(BigDecimal value) {
            addCriterion("seckill_price >", value, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("seckill_price >=", value, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceLessThan(BigDecimal value) {
            addCriterion("seckill_price <", value, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceLessThanOrEqualTo(BigDecimal value) {
            addCriterion("seckill_price <=", value, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceIn(List<BigDecimal> values) {
            addCriterion("seckill_price in", values, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceNotIn(List<BigDecimal> values) {
            addCriterion("seckill_price not in", values, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("seckill_price between", value1, value2, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andSeckillPriceNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("seckill_price not between", value1, value2, "seckillPrice");
            return (Criteria) this;
        }

        public Criteria andTotalCountIsNull() {
            addCriterion("total_count is null");
            return (Criteria) this;
        }

        public Criteria andTotalCountIsNotNull() {
            addCriterion("total_count is not null");
            return (Criteria) this;
        }

        public Criteria andTotalCountEqualTo(Integer value) {
            addCriterion("total_count =", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountNotEqualTo(Integer value) {
            addCriterion("total_count <>", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountGreaterThan(Integer value) {
            addCriterion("total_count >", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("total_count >=", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountLessThan(Integer value) {
            addCriterion("total_count <", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountLessThanOrEqualTo(Integer value) {
            addCriterion("total_count <=", value, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountIn(List<Integer> values) {
            addCriterion("total_count in", values, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountNotIn(List<Integer> values) {
            addCriterion("total_count not in", values, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountBetween(Integer value1, Integer value2) {
            addCriterion("total_count between", value1, value2, "totalCount");
            return (Criteria) this;
        }

        public Criteria andTotalCountNotBetween(Integer value1, Integer value2) {
            addCriterion("total_count not between", value1, value2, "totalCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountIsNull() {
            addCriterion("seckill_count is null");
            return (Criteria) this;
        }

        public Criteria andSeckillCountIsNotNull() {
            addCriterion("seckill_count is not null");
            return (Criteria) this;
        }

        public Criteria andSeckillCountEqualTo(Integer value) {
            addCriterion("seckill_count =", value, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountNotEqualTo(Integer value) {
            addCriterion("seckill_count <>", value, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountGreaterThan(Integer value) {
            addCriterion("seckill_count >", value, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountGreaterThanOrEqualTo(Integer value) {
            addCriterion("seckill_count >=", value, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountLessThan(Integer value) {
            addCriterion("seckill_count <", value, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountLessThanOrEqualTo(Integer value) {
            addCriterion("seckill_count <=", value, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountIn(List<Integer> values) {
            addCriterion("seckill_count in", values, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountNotIn(List<Integer> values) {
            addCriterion("seckill_count not in", values, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountBetween(Integer value1, Integer value2) {
            addCriterion("seckill_count between", value1, value2, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillCountNotBetween(Integer value1, Integer value2) {
            addCriterion("seckill_count not between", value1, value2, "seckillCount");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeIsNull() {
            addCriterion("seckill_begin_time is null");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeIsNotNull() {
            addCriterion("seckill_begin_time is not null");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeEqualTo(Date value) {
            addCriterion("seckill_begin_time =", value, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeNotEqualTo(Date value) {
            addCriterion("seckill_begin_time <>", value, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeGreaterThan(Date value) {
            addCriterion("seckill_begin_time >", value, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("seckill_begin_time >=", value, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeLessThan(Date value) {
            addCriterion("seckill_begin_time <", value, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeLessThanOrEqualTo(Date value) {
            addCriterion("seckill_begin_time <=", value, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeIn(List<Date> values) {
            addCriterion("seckill_begin_time in", values, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeNotIn(List<Date> values) {
            addCriterion("seckill_begin_time not in", values, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeBetween(Date value1, Date value2) {
            addCriterion("seckill_begin_time between", value1, value2, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillBeginTimeNotBetween(Date value1, Date value2) {
            addCriterion("seckill_begin_time not between", value1, value2, "seckillBeginTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeIsNull() {
            addCriterion("seckill_end_time is null");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeIsNotNull() {
            addCriterion("seckill_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeEqualTo(Date value) {
            addCriterion("seckill_end_time =", value, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeNotEqualTo(Date value) {
            addCriterion("seckill_end_time <>", value, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeGreaterThan(Date value) {
            addCriterion("seckill_end_time >", value, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("seckill_end_time >=", value, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeLessThan(Date value) {
            addCriterion("seckill_end_time <", value, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("seckill_end_time <=", value, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeIn(List<Date> values) {
            addCriterion("seckill_end_time in", values, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeNotIn(List<Date> values) {
            addCriterion("seckill_end_time not in", values, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeBetween(Date value1, Date value2) {
            addCriterion("seckill_end_time between", value1, value2, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andSeckillEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("seckill_end_time not between", value1, value2, "seckillEndTime");
            return (Criteria) this;
        }

        public Criteria andIsClosedIsNull() {
            addCriterion("is_closed is null");
            return (Criteria) this;
        }

        public Criteria andIsClosedIsNotNull() {
            addCriterion("is_closed is not null");
            return (Criteria) this;
        }

        public Criteria andIsClosedEqualTo(Integer value) {
            addCriterion("is_closed =", value, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedNotEqualTo(Integer value) {
            addCriterion("is_closed <>", value, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedGreaterThan(Integer value) {
            addCriterion("is_closed >", value, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedGreaterThanOrEqualTo(Integer value) {
            addCriterion("is_closed >=", value, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedLessThan(Integer value) {
            addCriterion("is_closed <", value, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedLessThanOrEqualTo(Integer value) {
            addCriterion("is_closed <=", value, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedIn(List<Integer> values) {
            addCriterion("is_closed in", values, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedNotIn(List<Integer> values) {
            addCriterion("is_closed not in", values, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedBetween(Integer value1, Integer value2) {
            addCriterion("is_closed between", value1, value2, "isClosed");
            return (Criteria) this;
        }

        public Criteria andIsClosedNotBetween(Integer value1, Integer value2) {
            addCriterion("is_closed not between", value1, value2, "isClosed");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {
        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}